<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<?php echo $this->Html->charset(); ?>
		<title>
			<?php __('Edufirst Administrator:'); ?>
			<?php echo $title_for_layout; ?>
		</title>
		<?php
			echo $this->Html->meta('icon');
			echo $html->css(array(
				'backend/profiadmin/960',
				'backend/profiadmin/reset',
				'backend/profiadmin/text',
				'backend/profiadmin/blue',
				'backend/profiadmin/smoothness/ui'
			));
			echo $javascript->link(array(
				'backend/profiadmin/jquery.min',
				'backend/profiadmin/blend/jquery.blend',
				'backend/profiadmin/ui.core',
				'backend/profiadmin/ui.sortable',
				'backend/profiadmin/ui.dialog',
				'backend/profiadmin/ui.datepicker',
				'backend/profiadmin/effects',
				//'backend/profiadmin/flot/jquery.flot.pack',
				//'backend/profiadmin/graphs'
			));
			echo $scripts_for_layout;
		?>
		<!--[if IE]>
		<?php
		echo $javascript->link(array(
			'backend/profiadmin/flot/excanvas.pack'	
		));
		?>
		<![endif]-->
		<!--[if IE 6]>
		<link rel="stylesheet" type="text/css" href="css/iefix.css" />
		<?php
		echo $html->css(array(
			'backend/profiadmin/iefix'
		));
		echo $javascript->link(array(
			'backend/profiadmin/pngfix'	
		));
		?>
		<script>DD_belatedPNG.fix('#menu ul li a span span');</script>        
		<![endif]-->
	</head>

	<body>
		<!-- WRAPPER START -->
		<div class="container_16" id="wrapper">		
			<!--LOGO-->
			<div class="grid_8" id="logo">Website Administration</div>
			<div class="grid_8">
			<!-- USER TOOLS START -->
				<div id="user_tools"><span>Welcome <?php echo $html->link($session->read('Auth.User.name'),array('controller'=>'users','action'=>'edit/'),array());?>  |  <?php echo $html->link('Logout',array('controller'=>'users','action'=>'logout'),array());?></span></div>
			</div>
			<!-- USER TOOLS END -->    
			<?php echo $this->element('backend/menu');?>
			<!-- CONTENT START -->
			<div class="grid_16" id="main_content">			
				<?php echo $content_for_layout;?>  
			 </div>
			<div class="clear"> </div>
			<!-- END CONTENT-->    
		</div>		
		<!-- WRAPPER END -->
		<!-- FOOTER START -->
		<div class="container_16" id="footer">&#169; 2012 Edufirst</div>
		<!-- FOOTER END -->
		<?php //echo $this->element('sql_dump'); ?>
	</body>
</html>
